package com.hxgz.steel.dao;

import com.hxgz.steel.domain.ProductModel;
import com.hxgz.steel.dto.ProductInfoDto;
import com.hxgz.steel.dto.ProductTypeAndColor;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component("ProductModelMapper")
public interface ProductModelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ProductModel record);

    int insertSelective(ProductModel record);

    ProductModel selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ProductModel record);

    int updateByPrimaryKey(ProductModel record);

    List<ProductModel> listModelsByProId(Long productId);

    List<ProductModel> getPriceByKind(Map map);

    int deleteByProductId(Long productId);

    List<String> getTpyeList(@Param("productId") Long productId, @Param("type")Integer type);

    List<ProductInfoDto> getTypeInfo(@Param("productId") Long productId);

    List<ProductTypeAndColor> getType(@Param("productId") Long productId);

}